import request from '../req'
// 保险数据
export const getPeriodData = async (params: any) => {
    let res = await request.get('/crm/record/get-period-data', {
        params: params
    })
    return res
}
// 保司列表
export const getInsuranceCompany = async (params: any) => {
    let res = await request.get('/crm/record/get-company-insurance-company', {
        params: params
    })
    return res
}
// 运营数据
export const getPeriodOperateData = async (params: any) => {
    let res = await request.get('/crm/record/get-period-operate-data', {
        params: params
    })
    return res
}
// 其他数据
export const getPeriodOtherData = async (params: any) => {
    let res = await request.get('/crm/record/get-period-other-data', {
        params: params
    })
    return res
}
// 统计分析-风险类别统计-人员
export const getRiskCategoryByPeople = async (params: any) => {
    let res = await request.get('/crm/record/get-risk-category-by-people', {
        params: params
    })
    return res
}
// 统计分析-风险类别统计-金额
export const getRiskCategoryByMoney = async (params: any) => {
    let res = await request.get('/crm/record/get-risk-category-by-money', {
        params: params
    })
    return res
}
// 统计分析-近7日开通数据
export const getPayOpenNearlySeven = async (params: any) => {
    let res = await request.get('/crm/record/get-pay-open-nearly-seven', {
        params: params
    })
    return res
}

// 统计分析-近7日加减保数据
export const getAddAndReduceTrend = async (params: any) => {
    let res = await request.get('crm/record/get-add-and-reduce-trend', {
        params: params
    })
    return res
}

// 统计分析-长期保保单
export const getPolicyList = async (params: any) => {
    let res = await request.get('/crm/record/get-policy-list', {
        params: params
    })
    return res
}
// 统计分析-加减保列表
export const getAddAndSubtractList = async (params: any) => {
    let res = await request.get('/crm/record/get-add-and-subtract-insur', {
        params: params
    })
    return res
}
// 统计分析-月单模式
export const getInsureMode = async (params: any) => {
    let res = await request.get('/crm/record/get-insur-mode', {
        params: params
    })
    return res
}



